package org.ctd.springframework.beans.handler.namespace;

import com.sun.istack.internal.Nullable;
import org.ctd.springframework.beans.factory.xml.NamespaceHandler;

/**
 * 命名空间解析器
 * NamespaceHandlerResolver
 *
 * @author chentudong
 * @date 2020/9/14 10:20
 * @since 1.0
 */
@FunctionalInterface
public interface NamespaceHandlerResolver {
    /**
     * Resolve the namespace URI and return the located {@link NamespaceHandler}
     * implementation.
     *
     * @param namespaceUri the relevant namespace URI
     * @return the located {@link NamespaceHandler} (may be {@code null})
     */
    @Nullable
    NamespaceHandler resolve(String namespaceUri);
}
